package achi.community.irla.beans;

import achi.community.irla.database.DatabaseImpl;
import achi.community.irla.database.ModelBean;
import achi.community.irla.entities.Achievements;
import achi.community.irla.entities.Users;
import java.io.Serializable;
import java.text.DateFormat;
import java.util.Date;


import java.util.HashMap;
import java.util.List;
import javax.ejb.EJB;
import javax.faces.bean.CustomScoped;

import javax.faces.bean.ManagedBean;
import javax.faces.bean.ManagedProperty;
import javax.faces.bean.RequestScoped;
import javax.faces.bean.SessionScoped;

/**
 * <p>The TextFieldsBean class is the backing bean for the Text Entry
 * demonstration. It is used to store the values of the input fields.</p>
 */
@ManagedBean(name="completedBackBean")
@SessionScoped
//@ManagedBean(name="settingsBackBean")
//@CustomScoped(value = "#{window}")
//@ManagedBean
//@RequestScoped
public class CompletedBackBean implements Serializable {

    /**
     * The different kinds of text input fields.
     */
    //Settings
    
    
    @EJB
    DatabaseImpl db;
    
    private String description;
    private String date_completed;
    private List<String> images;
    private String pos;
    private Users user;
    private Achievements achievement;

    public DatabaseImpl getDb() {
        return db;
    }

    public void setDb(DatabaseImpl db) {
        this.db = db;
    }

    public Achievements getAchievement() {
        return achievement;
    }

    public void setAchievement(Achievements achievement) {
        this.achievement = achievement;
    }

    public String getDate_completed() {
        return date_completed;
    }

    public void setDate_completed(String date_completed) {
        this.date_completed = date_completed;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public List<String> getImages() {
        return images;
    }

    public void setImages(List<String> images) {
        this.images = images;
    }

    public String getPos() {
        return pos;
    }

    public void setPos(String pos) {
        this.pos = pos;
    }

    public Users getUser() {
        return user;
    }

    public void setUser(Users user) {
        this.user = user;
    }
}